From 1bc6db839f980d9ee2f06a948454ebefc5eae7b8 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 29 Sep 2008 06:24:32 +0000 Subject: [PATCH] * Remove unneeded ini_set() from a very long time ago. Can't run this on allow_url_fopen nowadays. * Remove extra global declaration. --- includes/HttpFunctions.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 978509ee07..4efcd9d621 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -94,7 +94,6 @@ class Http { # Otherwise use file_get_contents... # This doesn't have local fetch capabilities... - global $wgVersion; $headers = array( "User-Agent: MediaWiki/$wgVersion" ); if( strcasecmp( $method, 'post' ) == 0 ) { // Required for HTTP 1.0 POSTs @@ -107,9 +106,7 @@ class Http { 'timeout' => $timeout ) ); $ctx = stream_context_create($opts); - $url_fopen = ini_set( 'allow_url_fopen', 1 ); $text = file_get_contents( $url, false, $ctx ); - ini_set( 'allow_url_fopen', $url_fopen ); } return $text; } -- 2.20.1